<?php
$username=$_GET['username'];
$dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
$sql="select * from zc where username='$username'";
//echo $sql;die;
$arr=$dbh->query($sql);
//echo $arr;die;
if($arr)
{
    echo 1;
}
else{
    echo 2;
}
